package dto

import (
	"github.com/gin-gonic/gin"
	"k8s-dash/utils"
)

type UserInput struct {
	Username string `json:"username" form:"username" comment:"用户名" validate:"required"`
	Password string `json:"password" form:"password" comment:"密码" validate:"required"`
}
type UserToken struct {
	Token string `form:"token" json:"token" comment:"token"  example:"token"`
}

func (params *UserInput) BindValidate(c *gin.Context) error {
	return utils.DefaultParamsValidate(c, params)
}
